public class LessThanCondition extends RouteCondition {

	public int distance;

	public LessThanCondition(int distance) {
		this.distance = distance;
	}

	@Override
	boolean isValid() {
		return (this.distance > currentNode.gCost);
	}
}
